package com.sc.nft.admin.request;

import com.sc.nft.enums.OperateDaoWalletAccountTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class OperateDaoWalletRequest {
    @ApiModelProperty("验证码id")
    @NotNull(message = "验证码Id不能为空")
    private Long smsId;
    @ApiModelProperty("验证码")
    @NotBlank(message = "验证码不能为为空")
    private String codes;
    @ApiModelProperty("daoId")
    @NotNull(message = "daoId")
    private Long daoId;
    @ApiModelProperty("操作类型")
    @NotNull(message = "操作类型不能为空")
    private Boolean isType;
    @ApiModelProperty("金额")
    @NotNull(message = "金额不能为空")
    @Min(value = 1, message = "最小金额不能小于1元")
    private BigDecimal amount;
    @ApiModelProperty("备注")
    @NotNull(message = "备注不能为空")
    private String remark;
    @ApiModelProperty("账户类型")
    @NotNull(message = "账户类型不能为空")
    private OperateDaoWalletAccountTypeEnum accountType;

}
